module.exports = {
  presets: [
    //这里是数组[]
    [
      '@babel/preset-env',
      { useBuiltIns: 'usage', corejs: '3' }, // usage按需引用 entry 在入口引用
    ],
  ],
  plugins: [
    [
      'component',
      {
        libraryName: 'element-ui',
        styleLibraryName: 'theme-chalk',
      },
    ],
    '@babel/plugin-transform-runtime',
  ],
}
